Programming with QuickTime VR

| Previous | Chapter contents | Chapter top | Section top | Next |

QTVRGetCurrentMouseMode

You can use the QTVRGetCurrentMouseMode function to obtain the current mouse control modes.

The value returned by the QTVRGetCurrentMouseMode function is an unsigned long integer that encodes the current mouse control modes. If a bit in the integer is set, the corresponding mode is one of the current mouse modes. The mode bits are addressed using these constants:

enum {
    kQTVRPanning                                    = 1L << 0,
    kQTVRTranslating                                = 1L << 1,
    kQTVRZooming                                    = 1L << 2,
    kQTVRScrolling                                  = 1L << 3,
    kQTVRSelecting                                  = 1L << 4
};

Notice that several modes can be returned, not just the highest priority one. That means a return value could have both zooming and translating set, for example.


© 1997 Apple Computer, Inc.

| Previous | Chapter contents | Chapter top | Section top | Next |